package com.trainoo.novel.crawler;

import com.trainoo.novel.model.Book;
import com.trainoo.novel.model.Chapter;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by Administrator on 2018/8/8.
 */
public abstract class NovelCrawlerAdapter {

    /**
     * 获取图书信息
     * @param bookId
     * @return
     */
    public abstract Book crawlBookInfo(String bookId);

    /**
     * 获取章节内容
     * @param url
     * @return
     */
    public abstract Chapter readChapter(String url);

    /**
     * 获取热门图书列表
     * @return
     */
    public abstract List<Chapter> hotBookList();

    /**
     * 搜索图书
     * @return
     */
    public abstract List<Book>  searchBook(Map<String, String> contentMap);
}
